package BluetoothConnection;

import java.util.ArrayList;

import javax.bluetooth.DeviceClass;
import javax.bluetooth.DiscoveryListener;
import javax.bluetooth.RemoteDevice;

import lejos.nxt.Button;
import lejos.nxt.comm.Bluetooth;

public class BlueTTest implements DiscoveryListener {
	static ArrayList<RemoteDevice> vecDevices = new ArrayList<RemoteDevice>();
	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {

        Bluetooth.waitForConnection();
        System.out.println("connected..");
        Button.waitForPress();
		
	}

	@Override
	public void deviceDiscovered(RemoteDevice arg0, DeviceClass arg1) {
		// TODO Auto-generated method stub
		vecDevices.add(arg0);
	}

	@Override
	public void inquiryCompleted(int arg0) {
		// TODO Auto-generated method stub
		
	}

}
